﻿<views:MvxWpfView
	x:Class="Sidvall.WorkItemManager.UI.Wpf.Views.WebExecutionContextView"
	xmlns:views="clr-namespace:MvvmCross.Wpf.Views;assembly=MvvmCross.Wpf"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
	xmlns:vms="clr-namespace:Sidvall.WorkItemManager.UI.ViewModels;assembly=Sidvall.WorkItemManager.UI"
	xmlns:Controls="clr-namespace:Sidvall.WorkItemManager.UI.Wpf.Controls" 
	xmlns:Converters="clr-namespace:Sidvall.UI.Wpf.Converters;assembly=Sidvall.UI.Wpf" 
	xmlns:local="clr-namespace:Sidvall.WorkItemManager.UI.Wpf.Views"
	mc:Ignorable="d" 
	d:DesignHeight="350" d:DesignWidth="600">

	<views:MvxWpfView.Resources>
		<Converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
		<Converters:BooleanToVisibilityConverter x:Key="NotBooleanToVisibilityConverter" Not="True"/>
	</views:MvxWpfView.Resources>

	<Grid d:DataContext="{d:DesignInstance IsDesignTimeCreatable=True, Type={x:Type vms:WebExecutionContextViewModel}}">
		<Grid>
			<Grid>
				<Grid.RowDefinitions>
					<RowDefinition />
					<RowDefinition Height="Auto" />
				</Grid.RowDefinitions>

				<Grid>
					<DataGrid ItemsSource="{Binding ActiveEntity.WebResults}" AutoGenerateColumns="False" CanUserAddRows="False" CanUserDeleteRows="False">
						<DataGrid.Columns>
							<DataGridTextColumn Header="Web Address" Width="*" Binding="{Binding WebAddress}" IsReadOnly="True" />
							<DataGridTextColumn Header="Status" Binding="{Binding StatusCode}" IsReadOnly="True" />
							<DataGridTextColumn Header="Length" Binding="{Binding ContentLength}" IsReadOnly="True" />
							<DataGridTextColumn Header="Response Time" Binding="{Binding ResponseTime}" IsReadOnly="True" />
						</DataGrid.Columns>
					</DataGrid>
				</Grid>
			</Grid>
		</Grid>
	</Grid>
</views:MvxWpfView>
